import request from '@/utils/request'

// 查询用户动态消息列表
export function listUserActiveMessaging(query) {
  return request({
    url: '/system/userActiveMessaging/list',
    method: 'get',
    params: query
  })
}

// 查询用户动态消息详细
export function getUserActiveMessaging(id) {
  return request({
    url: '/system/userActiveMessaging/' + id,
    method: 'get'
  })
}

// 新增用户动态消息
export function addUserActiveMessaging(data) {
  return request({
    url: '/system/userActiveMessaging',
    method: 'post',
    data: data
  })
}

// 修改用户动态消息
export function updateUserActiveMessaging(data) {
  return request({
    url: '/system/userActiveMessaging',
    method: 'put',
    data: data
  })
}

// 删除用户动态消息
export function delUserActiveMessaging(id) {
  return request({
    url: '/system/userActiveMessaging/' + id,
    method: 'delete'
  })
}

// 导出用户动态消息
export function exportUserActiveMessaging(query) {
  return request({
    url: '/system/userActiveMessaging/export',
    method: 'get',
    params: query
  })
}